package com.dongqi.guardrailData.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 现场情况-护拦板
 * @TableName scene_guardrail_board
 */
@TableName("scene_guardrail_board")
public class GuardrailBoardEntity implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 设备编号
     */
    private String deviceNo;

    /**
     * 护拦板编号
     */
    private String boardNo;

    /**
     * 护拦板名称
     */
    private String boardName;

    /**
     * 是否标准版(0=否,1=是)
     */
    private String isStandard;

    /**
     * 护拦板长度(mm)
     */
    private String boardLength;

    /**
     * 护拦板数量
     */
    private String boardNum;

    /**
     * 定制厂家
     */
    private String factory;

    /**
     * 护拦板状态(1=待下单;2=已入库)
     */
    private String boardStatus;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 备用1
     */
    private String bak1;

    /**
     * 备用2
     */
    private String bak2;

    /**
     * 备用3
     */
    private String bak3;

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 设备编号
     */
    public String getDeviceNo() {
        return deviceNo;
    }

    /**
     * 设备编号
     */
    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    /**
     * 护拦板编号
     */
    public String getBoardNo() {
        return boardNo;
    }

    /**
     * 护拦板编号
     */
    public void setBoardNo(String boardNo) {
        this.boardNo = boardNo;
    }

    /**
     * 护拦板名称
     */
    public String getBoardName() {
        return boardName;
    }

    /**
     * 护拦板名称
     */
    public void setBoardName(String boardName) {
        this.boardName = boardName;
    }

    /**
     * 是否标准版(0=否,1=是)
     */
    public String getIsStandard() {
        return isStandard;
    }

    /**
     * 是否标准版(0=否,1=是)
     */
    public void setIsStandard(String isStandard) {
        this.isStandard = isStandard;
    }

    /**
     * 护拦板长度(mm)
     */
    public String getBoardLength() {
        return boardLength;
    }

    /**
     * 护拦板长度(mm)
     */
    public void setBoardLength(String boardLength) {
        this.boardLength = boardLength;
    }

    /**
     * 护拦板数量
     */
    public String getBoardNum() {
        return boardNum;
    }

    /**
     * 护拦板数量
     */
    public void setBoardNum(String boardNum) {
        this.boardNum = boardNum;
    }

    /**
     * 定制厂家
     */
    public String getFactory() {
        return factory;
    }

    /**
     * 定制厂家
     */
    public void setFactory(String factory) {
        this.factory = factory;
    }

    /**
     * 护拦板状态(1=待下单;2=已入库)
     */
    public String getBoardStatus() {
        return boardStatus;
    }

    /**
     * 护拦板状态(1=待下单;2=已入库)
     */
    public void setBoardStatus(String boardStatus) {
        this.boardStatus = boardStatus;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 修改时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 备用1
     */
    public String getBak1() {
        return bak1;
    }

    /**
     * 备用1
     */
    public void setBak1(String bak1) {
        this.bak1 = bak1;
    }

    /**
     * 备用2
     */
    public String getBak2() {
        return bak2;
    }

    /**
     * 备用2
     */
    public void setBak2(String bak2) {
        this.bak2 = bak2;
    }

    /**
     * 备用3
     */
    public String getBak3() {
        return bak3;
    }

    /**
     * 备用3
     */
    public void setBak3(String bak3) {
        this.bak3 = bak3;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        GuardrailBoardEntity other = (GuardrailBoardEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDeviceNo() == null ? other.getDeviceNo() == null : this.getDeviceNo().equals(other.getDeviceNo()))
            && (this.getBoardNo() == null ? other.getBoardNo() == null : this.getBoardNo().equals(other.getBoardNo()))
            && (this.getBoardName() == null ? other.getBoardName() == null : this.getBoardName().equals(other.getBoardName()))
            && (this.getIsStandard() == null ? other.getIsStandard() == null : this.getIsStandard().equals(other.getIsStandard()))
            && (this.getBoardLength() == null ? other.getBoardLength() == null : this.getBoardLength().equals(other.getBoardLength()))
            && (this.getBoardNum() == null ? other.getBoardNum() == null : this.getBoardNum().equals(other.getBoardNum()))
            && (this.getFactory() == null ? other.getFactory() == null : this.getFactory().equals(other.getFactory()))
            && (this.getBoardStatus() == null ? other.getBoardStatus() == null : this.getBoardStatus().equals(other.getBoardStatus()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getBak1() == null ? other.getBak1() == null : this.getBak1().equals(other.getBak1()))
            && (this.getBak2() == null ? other.getBak2() == null : this.getBak2().equals(other.getBak2()))
            && (this.getBak3() == null ? other.getBak3() == null : this.getBak3().equals(other.getBak3()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeviceNo() == null) ? 0 : getDeviceNo().hashCode());
        result = prime * result + ((getBoardNo() == null) ? 0 : getBoardNo().hashCode());
        result = prime * result + ((getBoardName() == null) ? 0 : getBoardName().hashCode());
        result = prime * result + ((getIsStandard() == null) ? 0 : getIsStandard().hashCode());
        result = prime * result + ((getBoardLength() == null) ? 0 : getBoardLength().hashCode());
        result = prime * result + ((getBoardNum() == null) ? 0 : getBoardNum().hashCode());
        result = prime * result + ((getFactory() == null) ? 0 : getFactory().hashCode());
        result = prime * result + ((getBoardStatus() == null) ? 0 : getBoardStatus().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getBak1() == null) ? 0 : getBak1().hashCode());
        result = prime * result + ((getBak2() == null) ? 0 : getBak2().hashCode());
        result = prime * result + ((getBak3() == null) ? 0 : getBak3().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deviceNo=").append(deviceNo);
        sb.append(", boardNo=").append(boardNo);
        sb.append(", boardName=").append(boardName);
        sb.append(", isStandard=").append(isStandard);
        sb.append(", boardLength=").append(boardLength);
        sb.append(", boardNum=").append(boardNum);
        sb.append(", factory=").append(factory);
        sb.append(", boardStatus=").append(boardStatus);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", bak1=").append(bak1);
        sb.append(", bak2=").append(bak2);
        sb.append(", bak3=").append(bak3);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}